home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!cae1-5.agt.gmeds.com
- From: "David S. Pesetsky 230-6088 AGT/8880" <iedsp@agt.gmeds.com>
- Newsgroups: comp.lang.c
- Subject: How come I can "see" strings stored in an executable?
- Date: Tue, 30 Jan 96 12:43:34 EST
- Message-ID: <9601301743.AA03771@cae1-5.agt.gmeds.com>
- X-NNTP-Posting-Host: cae1-5.agt.gmeds.com
- X-Mail2News-Path: dms1.agt.gmeds.com!cae1-5.agt.gmeds.com
-
- Platform: IBM RISC6000 AIX3.2.5 X11R5
-
- I have a simple c-code which uses the system call to execute
- a string in the bourne shell. Whether I set the string like
-
- char my_string[500]="sleep 10";
-
- or like:
-
- #define my_string "sleep 10"
-
- once I compile, one only needs to edit into the executable to figure out the
- string. Makes for selling just the executable a little risky, especially if all it does
- is execute strings. Can I scramble the executable a bit more?
-
- I can't subscribe to USENET (I post through e-mail), so please e-mail me your
- response, and sorry for any inconveniences. Thanks.
-
- Dave
-